<titlemenu></titlemenu>
<div class="dj-list">
    <div class="dj-list-body">
        <div class="dj-list-content content1">
            <div class="card">
                <div activate-input activate-select class="header search-header">
                    <div class="search-param-panel">
                        <div class="search-input">
                            <form class="form-horizontal">
                                <div class="row clearfix form-inline">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>年度</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="year" class="form-control"
                                                       ng-change="search()"
                                                       autocomplete="off"
                                                       autoclose="true" data-min-view="2" data-start-view="2"
                                                       data-date-format="yyyy" data-date-type="string"
                                                       ng-model="selectparams.year"
                                                       placeholder="" bs-datepicker/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>主题</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="paperName" class="form-control" type="text"
                                                       ng-keypress="($event.which === 13)?search():0"
                                                       ng-model="selectparams.title"
                                                       placeholder=""/>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>考核时间</label>
                                    </div>
                                    <div class="col-lg-3 col-md-3">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="startDate" class="form-control fm-ct-first"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyy-MM-dd" data-date-type="string"
                                                       ng-model="selectparams.startDate"
                                                       ng-change="search()"
                                                       placeholder="" bs-datepicker/>
                                                <input name="endDate" class="form-control fm-ct-last" type="text"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyy-MM-dd" data-date-type="string"
                                                       ng-model="selectparams.endDate"
                                                       ng-change="search()"
                                                       placeholder="" bs-datepicker/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="search-btn" style="margin-right: 20px;">
                            <div style="min-width: 13em">
                                <button class="btn btn-default1"
                                        ng-click="search()">查询
                                </button>
                                <button class="btn btn-default1 btn-reset"
                                        ng-click="reset()">重置
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="search-btn" style="margin-right: 20px;">
                        <div style="float: right">

                        </div>
                    </div>
                </div>
                <div class="body">
                    <div class="zero-list-table-panel">
                        <div class="zero-source-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th class="th-rownum">
                                        <div>序号</div>
                                    </th>
                                    <th>年度</th>
                                    <th>主题</th>
                                    <th>考核起止时间</th>
                                    <th>评议状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList">
                                    <td class="text-center" td-rownum index="$index" pageindex="selectparams.pageindex"
                                        pagesize="selectparams.pagesize"></td>
                                    <td class="text-center">{{it.year}}年</td>
                                    <td>{{it.title}}</td>
                                    <td class="text-center">{{it.startDate | date:'yyyy-MM-dd'}}至{{it.endDate |
                                        date:'yyyy-MM-dd'}}
                                    </td>
                                    <td class="text-center">{{it.isReview?"已评议":"未评议"}}</td>
                                </tr>
                                <tr ng-if="dataList.length<=0">
                                    <td colspan="10" style="text-align:center">暂无数据</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="zero-target-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList" zero-table-height>
                                    <td>
                                        <button class="btn td-btn bg-light-green waves-effect"
                                                ng-click="review(it.democracyReviewPlanId)"
                                                role-permission-code="democracyReview.btnReview"
                                                title="评议" ng-if="it.recordStatus!=3">
                                            评议
                                        </button>
                                        <button class="btn td-btn bg-light-green waves-effect"
                                                ng-click="reviewTotal(it.democracyReviewPlanId,it.title)"
                                                role-permission-code="democracyReview.btnReviewDetail"
                                                title="评议结果">
                                            评议结果
                                        </button>
                                    </td>
                                </tr>
                                <tr ng-if="pageInfo.ptotal==0">
                                    <td colspan="1" style="text-align:center">无</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <pagination data-pageindex="selectparams.pageindex" data-pagesize="selectparams.pagesize"
                                data-ptotal="pageInfo.ptotal"></pagination>
                </div>
            </div>
        </div>
    </div>
</div>
